package it.enricod.jcontextfree.engine.model.vo;

/**
 * ValueObject per la posizione 2D di un punto
 * 
 * @author edonelli
 */
public class Position2D {

    private final double x;
    private final double y;

    private Position2D(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public double getY() {
        return y;
    }

    public static Position2D createInstance(double x, double y) {
        return new Position2D(x,y);
    }
}
